# Maintainer: Guillaume ALAUX <guillaume@archlinux.org>
_libname=antlr
pkgname=java-${_libname}3
pkgver=3.5
pkgrel=1
pkgdesc='Language tool that provides a framework for constructing grammatical parsers'
arch=('any')
url='http://www.antlr.org/'
license=('BSD')
depends=('java-runtime')
source=(http://www.antlr3.org/download/${_libname}-${pkgver}-complete.jar
        LICENSE.txt)
sha256sums=('e173f6619d385d9092d09d87369ec9757bc738ff2c28095b61ea84d624819ce8'
            '95fc87cbe29814a32fc97f6f8eb7ae55e4816d4b75143635c4db736e7e374fa2')

package() {
  install -Dm644 ${srcdir}/${_libname}-${pkgver}-complete.jar \
                 ${pkgdir}/usr/share/java/${_libname}-${pkgver}.jar
  ln -s ${_libname}-${pkgver}.jar \
        ${pkgdir}/usr/share/java/${_libname}.jar

  install -Dm644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt
}
